﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;


namespace ZGameFramework.UI
{
    public interface IUIBehaivour
    {
        /// <summary>
        /// 注册事件
        /// </summary>
        void RegisterEvent();

        /// <summary>
        /// 注销事件
        /// </summary>
        void UnRegisterEvent();

        /// <summary>
        /// 入场
        /// </summary>
        /// <returns></returns>
        float FadeIn( GameFrameworkParam param );

        /// <summary>
        /// 出场
        /// </summary>
        /// <returns></returns>
        float FadeOut();

        /// <summary>
        /// 入场之后
        /// </summary>
        void FadeInAfter();

        /// <summary>
        /// 出场之后
        /// </summary>
        void FadeOutAfter();

        GameObject m_GameObject { get; }

    }
}